package com.ruoyi.deliver.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.deliver.mapper.ProjectDeliverMapper;
import com.ruoyi.deliver.domain.ProjectDeliver;
import com.ruoyi.deliver.service.IProjectDeliverService;

/**
 * 发货管理Service业务层处理
 * 
 * @author 刘晋羽
 * @date 2025-08-08
 */
@Service
public class ProjectDeliverServiceImpl implements IProjectDeliverService 
{
    @Autowired
    private ProjectDeliverMapper projectDeliverMapper;

    /**
     * 查询发货管理
     * 
     * @param deliverId 发货管理主键
     * @return 发货管理
     */
    @Override
    public ProjectDeliver selectProjectDeliverByDeliverId(Long deliverId)
    {
        return projectDeliverMapper.selectProjectDeliverByDeliverId(deliverId);
    }

    /**
     * 查询发货管理列表
     * 
     * @param projectDeliver 发货管理
     * @return 发货管理
     */
    @Override
    public List<ProjectDeliver> selectProjectDeliverList(ProjectDeliver projectDeliver)
    {
        return projectDeliverMapper.selectProjectDeliverList(projectDeliver);
    }

    /**
     * 新增发货管理
     * 
     * @param projectDeliver 发货管理
     * @return 结果
     */
    @Override
    public int insertProjectDeliver(ProjectDeliver projectDeliver)
    {
        return projectDeliverMapper.insertProjectDeliver(projectDeliver);
    }

    /**
     * 修改发货管理
     * 
     * @param projectDeliver 发货管理
     * @return 结果
     */
    @Override
    public int updateProjectDeliver(ProjectDeliver projectDeliver)
    {
        return projectDeliverMapper.updateProjectDeliver(projectDeliver);
    }

    /**
     * 批量删除发货管理
     * 
     * @param deliverIds 需要删除的发货管理主键
     * @return 结果
     */
    @Override
    public int deleteProjectDeliverByDeliverIds(Long[] deliverIds)
    {
        return projectDeliverMapper.deleteProjectDeliverByDeliverIds(deliverIds);
    }

    /**
     * 删除发货管理信息
     * 
     * @param deliverId 发货管理主键
     * @return 结果
     */
    @Override
    public int deleteProjectDeliverByDeliverId(Long deliverId)
    {
        return projectDeliverMapper.deleteProjectDeliverByDeliverId(deliverId);
    }
}
